package com.cdgeekcamp.redas.lib.core.api;

import java.util.ArrayList;

public class ApiResponseList<T> extends ApiResponse {
    private ArrayList<T> result;

    public ApiResponseList() {
        result = new ArrayList<>();
    }

    public ApiResponseList(ResponseCode code, String message) {
        super(code, message);
        result = new ArrayList<>();
    }

    public ArrayList<T> getResult() {
        return result;
    }

    public void setResult(ArrayList<T> result) {
        this.result = result;
    }

    public void addValue(T value) {
        result.add(value);
    }
}
